<div class="carttitles">
   <h1>Shopping Cart</h1>
</div>

<?php if(!$this->cart->contents()):
	echo 'You don\'t have any items yet.';
else:
?>
<form action="<?php echo WEB_URL; ?>index.php/cart/update_cart" method="post">

<div class="cartnote">If the quantity is set to zero, the item will be removed from the cart.</div>

<div class="border-main">
	<div class="cartdetail">
	  <div class="column1"><h3>S.N</h3></div>
	  <div class="column2"><h3>Product Name</h3></div>
	  <div class="columnin"><h3>Quantity</h3></div>
	  <div class="columnin"><h3>Item Price</h3></div>
	  <div class="columnin"><h3>Total</h3></div>
	
	</div>
<?php $i = 1; ?>
		<?php foreach($this->cart->contents() as $items): ?>
	
		
		<?php echo form_hidden('rowid[]', $items['rowid']); ?>
		
		
<div style="float: left;">
            <table cellspacing="0" border="0" style="border-collapse: collapse;" id="ctl00_ContentPlaceHolder1_dstSCart">
	<tbody><tr>
		<td>
           <div class="prodetail2">
		   <div class="pcolumnin"><?php echo $i; ?></div>          
              <div class="pcolumn1"><?php echo $items['name']; ?> </div>
              <div class="pcolumn2"> <?php echo form_input(array('name' => 'qty[]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '1')); ?> </div>
              
            
              <div class="pcolumn3">Rs.<?php echo $this->cart->format_number($items['price']); ?> </div>
              <div class="pcolumn4">Rs.<?php echo $this->cart->format_number($items['subtotal']); ?></div>
			      
            </div>
                                
                </td>
	</tr>
</tbody></table>
            </div>
			
			<?php $i++; ?>
		<?php endforeach; ?>
			
			<div class="cartdetail" >
              <div class="columnbut"><input type="Submit" name="Submit" value="Update your Cart"></div>
              <div class="columnin3"><a href="<?php echo WEB_URL; ?>index.php/cart/empty_cart">Empty Cart</a></div>
              <div class="columnin">&nbsp;</div>
              <div class="columnin">&nbsp;</div>
              <div class="columnin">&nbsp;</div>
              <div class="columnin">Net Amount Pay </div>
              <div class="columnin"><b>Rs. <span id="ctl00_ContentPlaceHolder1_lblGTotal"><?php echo $this->cart->format_number($this->cart->total()); ?></span> </b></div>
              <div class="columnin">&nbsp;</div>
            </div>
			
			
			<div class="shopmore"> <a  href="<?php echo WEB_URL;?>index.php/home/home_products/">Proceed To Pay</a></div>
			
			<div class="shopmore"> <a  href="<?php echo WEB_URL;?>index.php/home/home_products/">Shop More</a></div>			
	</div>		

<?php 
echo "</form>";
endif;
?>





